﻿ @using EnheimGallery.Models.StatisticsModel
 @model List<UserStatisticsViewModel>
 <!--
 uses data from the query
 -->
 <table cellpadding="0" cellspacing="0" border="0">
        <thead>
            <tr>
                <td> Username </td>
                <td> Categories </td>
                <td> Photos </td>
                <td> Latest Activity Date </td>
                <td> Description </td>
            </tr>
        </thead>
        <tbody>
         @foreach (UserStatisticsViewModel Statistic in Modell)
         {
          <tr>
            <td>@Statistic.Username</td> 
            <td>@Statistic.CategoriesCount</td>
            <td>@Statistic.PhotosCount</td>
            <td>@Statistic.LastActivityDate/td>
            <td>@Statistic.Description</td>
          </tr>   
         }
        </tbody>
    </table>